package com.bootdo.system.mapper;

import com.bootdo.system.domain.TbWxuser;
import com.bootdo.system.domain.TbWxuserExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface TbWxuserMapper {
    long countByExample(TbWxuserExample example);

    int deleteByExample(TbWxuserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbWxuser record);

    int insertSelective(TbWxuser record);

    List<TbWxuser> selectByExample(TbWxuserExample example);

    TbWxuser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbWxuser record, @Param("example") TbWxuserExample example);

    int updateByExample(@Param("record") TbWxuser record, @Param("example") TbWxuserExample example);

    int updateByPrimaryKeySelective(TbWxuser record);

    int updateByPrimaryKey(TbWxuser record);

	int count(Map<String, Object> map);

	List<TbWxuser> list(Map<String, Object> map);

	List<TbWxuser> getUserByOpenId(@Param("openId") String openId);

	List<TbWxuser> getUserByOpenId2(@Param("openId")String openId);
	
	List<TbWxuser> getUserByOpenId3(@Param("openId")String openId);
	
	List<TbWxuser> getUserByOpenId4(@Param("wxuserId")Integer wxuserId);


	int getNum(@Param("userId") Integer userId,@Param("paytime") String paytime);

	int insertBatch(@Param("list")List<TbWxuser> newList);

	int selectLeaderNum(Integer leaderId);
}